package com.link2room.blaster.controller.inside;

import com.link2room.blaster.dto.param.base.RegistrationVerificationBaseParamDto;

import com.link2room.blaster.facade.IRegistrationVerificationFacadeService;
import com.link2room.common.dto.result.base.BaseResultDto;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * Created by LN on 2016/10/27.
 */
@RestController
@RequestMapping("/in/VerificationCodes")
@Deprecated
public class DayuVerificationMsgInsideController {
    @Resource
    private IRegistrationVerificationFacadeService registrationVerificationFacadeService;

    @RequestMapping(method = RequestMethod.PUT)
    public @ResponseBody
    BaseResultDto verifyCode(@RequestBody RegistrationVerificationBaseParamDto paramDto) throws Exception {
        registrationVerificationFacadeService.signupVerifyCode(paramDto);
        BaseResultDto resultDto = new BaseResultDto();
        resultDto.setResultCode(0);
        return resultDto;
    }

}
